-module(thinking).
-export([go/0, extract/1]).

go() ->
	io:fwrite("printing numbers...~n", []),
	for(1).
	
for(11) ->
	io:fwrite("~n", []);
for(X) ->
	io:fwrite("~b ", [X]),
	for(X+1).
	
extract(List) ->
	lists:map(fun extractFromTuple/1, List).
	
extractFromTuple({_, Second, _}) ->
	Second.
